﻿using Serilog;
using Volo.Abp.DependencyInjection;

namespace Cjj.Exam.Hangfire
{
    public class CjjJobSchBackWork : ITransientDependency
    {
        //public ITongJiDaiLiShiCaseService _tongJiDaiLiShiCaseService { get; set; }
        private ILogger<CjjJobSchBackWork> _logger = null;
        public CjjJobSchBackWork(ILogger<CjjJobSchBackWork> logger)
        {
            _logger = logger;
        }
        public async Task Run()
        {
            // await _tongJiDaiLiShiCaseService.TongJiAsync();
            _logger.LogInformation($"这是info 日志：{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
            Log.Information($"这是Log info 日志：{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");

            _logger.LogError("这是错误日志");
            Log.Error("这是Log错误日志");

            _logger.LogDebug("这是Information日志");
            Log.Debug("这是Log Debug日志");

        }
    }
}
